//
//  Themes.m
//  SmallEasyLife
//
//  Created by qianfeng on 15/10/24.
//  Copyright © 2015年 GXK. All rights reserved.
//

#import "Themes.h"
#import "NSObject+Model.h"
@implementation Themes

+ (instancetype)themesWithDictionary:(NSDictionary *)dictionary
{
    return [[self alloc] initWithDictionary:dictionary];
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"id"]) {
        self.identifier = value;
    }
}

- (NSString *)description
{
    NSMutableString * descriptionOutput = [[NSMutableString alloc] init];
    [descriptionOutput appendFormat: @"hasweb = \"%@\"\r\n", self.hasweb];
    [descriptionOutput appendFormat: @"img = \"%@\"\r\n", self.img];
    [descriptionOutput appendFormat: @"themeurl = \"%@\"\r\n", self.themeurl];
    [descriptionOutput appendFormat: @"id = \"%@\"\r\n", self.identifier];
    [descriptionOutput appendFormat: @"height = \"%@\"\r\n", self.height];
    [descriptionOutput appendFormat: @"keywords = \"%@\"\r\n", self.keywords];
    [descriptionOutput appendFormat: @"title = \"%@\"\r\n", self.title];
    [descriptionOutput appendFormat: @"text = \"%@\"\r\n", self.text];
    [descriptionOutput appendFormat: @"width = \"%@\"\r\n", self.width];
    [descriptionOutput appendFormat: @"begin_time = \"%@\"\r\n", self.begin_time];
    
    return descriptionOutput;
}

@end
